<?php
namespace app\index\validate;

use think\Validate;

class Shopcar extends Validate
{
    protected $rule = [
        'fid'  =>  'require',
        'uid' =>  'require',
        'single_price' =>  'number',
        'num' =>'number'
    ];
    protected $message = [
        'fid' =>  '不存在该商品',
        'uid' =>'不存在该用户',
        'single_price' =>'价格数量输入错误',
        'num' =>'商品数量输入错误',
    ];
}